/* 个人中心页面样式 */

.profile-page {
    padding: 2rem 1rem;
    max-width: 1440px;
    margin: 0 auto;
    min-height: calc(100vh - 70px - 300px);
    margin-top: 70px;
}

.profile-container {
    background-color: var(--surface-color);
    border-radius: var(--radius-lg);
    padding: 2rem;
}

.profile-header {
    display: flex;
    align-items: center;
    gap: 2rem;
    margin-bottom: 2rem;
}

.profile-avatar {
    position: relative;
    width: 200px;
    height: 200px;
    border-radius: 50%;
    overflow: hidden;
    border: 4px solid var(--primary-color);
}

.profile-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.avatar-badge {
    display: none;
}

.profile-info {
    flex-grow: 1;
}

.username {
    font-size: 2.5rem;
    color: var(--text-primary);
    margin: 0 0 0.5rem 0;
}

.user-bio {
    color: var(--text-secondary);
    margin-bottom: 1rem;
}

.user-stats {
    display: flex;
    gap: 2rem;
}

.stat-item {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.stat-value {
    font-size: 1.5rem;
    font-weight: bold;
    color: var(--text-primary);
}

.stat-label {
    color: var(--text-secondary);
    font-size: 0.875rem;
}

.profile-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
}

.section-title {
    font-size: 1.5rem;
    color: var(--text-primary);
    margin-bottom: 1rem;
    border-bottom: 2px solid var(--primary-color);
    padding-bottom: 0.5rem;
}

.games-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1rem;
}

.game-card {
    background-color: rgba(108, 92, 231, 0.1);
    border-radius: var(--radius-md);
    overflow: hidden;
    transition: transform 0.3s ease;
}

.game-card:hover {
    transform: scale(1.05);
}

.game-card img {
    width: 100%;
    height: 200px;
    object-fit: cover;
}

.game-card .game-info {
    padding: 1rem;
}

.game-card h3 {
    margin: 0 0 0.5rem 0;
    color: var(--text-primary);
}

.game-card p {
    color: var(--text-secondary);
    font-size: 0.875rem;
}

.achievements-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1rem;
}

.achievement-item {
    display: flex;
    align-items: center;
    gap: 1rem;
    background-color: rgba(108, 92, 231, 0.1);
    border-radius: var(--radius-md);
    padding: 1rem;
    transition: transform 0.3s ease;
}

.achievement-item:hover {
    transform: scale(1.05);
}

.achievement-icon {
    font-size: 2rem;
    background-color: var(--primary-color);
    color: var(--background-color);
    width: 64px;
    height: 64px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: var(--radius-md);
}

.achievement-info h3 {
    margin: 0 0 0.5rem 0;
    color: var(--text-primary);
}

.achievement-info p {
    color: var(--text-secondary);
    font-size: 0.875rem;
}
